import axios from "@/axios";

// 添加收藏
export function addFavorite(data) {
    return axios.post("/favorite/add", data)
}

// 取消收藏
export function removeFavorite(data) {
    return axios.post("/favorite/remove", data)
}

// 获取收藏列表
export function getFavoriteList(data) {
    return axios.post("/favorite/list", data)
}

// 检查收藏状态
export function checkFavoriteStatus(articleId, sessionId, type) {
    return axios.get("/favorite/status", {
        params: { articleId, sessionId, type }
    })
}
